package com.hy.medicine.evaluation.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

/**
 * 评价DTO
 */
@Data
public class MedicineEvaluationDTO {

    private Integer orderId;

    @NotNull(message = "药品ID不能为空")
    private Integer medicineId;

    @NotBlank(message = "评价内容不能为空")
    @Size(max = 500, message = "评价内容不能超过500字")
    private String evaluationContent;

    @NotNull(message = "评分不能为空")
    private Integer evaluationScore;

    // private List<String> images; // 评价图片

    @JsonProperty("isAnonymous")
    private Boolean anonymous = false; // 添加默认值，并使用 @JsonProperty 注解
}

